﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace MobileWeb
{
    public partial class Site : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected string TitlePage
        {
            get
            {
                object o = ViewState["TitlePage"];
                return o == null ? "Default.aspx" : o.ToString();
            }
            set
            {
                ViewState["TitlePage"] = value;
            }
        }

        protected string BackUrl
        {
            get
            {
                object o = ViewState["BackUrl"];
                return o == null ? "Default.aspx" : o.ToString();
            }
            set
            {
                ViewState["BackUrl"] = value;
            }
        }

        public void SetTitlePage(string title)
        {
            TitlePage = title;
            Page.Title = title;
        }

        public void SetBackUrl(string url)
        {
            BackUrl = url;
        }
    }
}